<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo ($art["title"]); ?>--<?php echo (C("WEBNAME")); ?></title>
<meta name="keywords" content="个人博客,闫海个人博客,<?php echo ($art["tags"]); ?>" />
<meta name="description" content="<?php echo ($art["description"]); ?>" />
<link href="/Public/Index/css/base.css" rel="stylesheet">
<link href="/Public/Index/css/new.css" rel="stylesheet">
<link rel="stylesheet" href="/Public/Index/css/animate.css">
<link rel="stylesheet" type="text/css" href="/Public/Admin/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css">
<script src="http://siteapp.baidu.com/static/webappservice/uaredirect.js" type="text/javascript"></script><script type="text/javascript">uaredirect("http://yanhai0531.com/mobile.php");</script>
<!--[if lt IE 9]>
<script src="/Public/Index/js/modernizr.js"></script>
<![endif]-->

<script type="text/javascript" src="/Public/Admin/Js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="/Public/Admin/ueditor/third-party/SyntaxHighlighter/shCore.js"></script>
<script type="text/javascript">
  SyntaxHighlighter.all();
</script>
<script type="text/javascript">
  var url = '/index/article';
  $(function(){
    var id = '<?php echo ($art["id"]); ?>';
    $.post(url+'/addClick',{'id':id},function(data){
        $("#pclick").html('点击数：' + data);
    });
  })
</script>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F5a97c6527b57694be765111b6a23bffc' type='text/javascript'%3E%3C/script%3E"));
</script>
</head>
<body>
<script src="/Public/Index/js/jquery.js"></script>
<div class='header animated bounceInDown'>
    <div class='wrap'>
      <div class='logo'><a data-scroll-reveal='enter from the top over 0.7s' href='<?php echo U("/");?>'>
         <img src='/Public/Index/images/logo.png' title='闫海的个人博客首页' alt="logo" /></a>
      </div>
      <div data-scroll-reveal='enter from the top over 0.7s' class='top-nav'>
          <ul id="topnav">
            <li><a href='<?php echo U("/");?>'  title='首页'>首页<span></span></a></li>
            <?php $_cate = M('category')->order('sort')->where(array('pid'=>0))->select(); foreach($_cate as $_cate_v): extract($_cate_v); $url = U('Index/list/'.$id); ?><li><a href='<?php echo ($url); ?>' title='<?php echo ($name); ?>'><?php echo ($name); ?><span> </span></a></li><?php endforeach; ?>
            <li><a href='<?php echo U("Index/Article/message");?>'  title='给我留言'>给我留言<span></span></a></li>
          </ul>
      </div>
      <div class='clear'></div>
    </div>
</div>
<article class="blogs">
  <?php W('Right/location',array($art['cid']));?>
  <a href="<?php echo U('/index');?>" class="n1">网站首页</a>
  </h1>
  <div class="index_about">
    <h2 class="c_titile"><?php echo ($art["title"]); ?></h2>
    <p class="box_c"><span class="d_time">发布时间：<?php echo (date('Y-m-d H:i',$art["time"])); ?></span><span>编辑：<?php echo ($art["author"]); ?></span><span id="pclick">点击数：<?php echo ($art["click"]); ?></span></p>
    <ul class="infos" style="word-break: break-all;">
      <?php echo (htmlspecialchars_decode($art["content"])); ?>
    </ul>
    <div class="keybq">
    <p><span>关键字词</span>：<?php echo ($art["tags"]); ?></p>
    
    </div>
    <div class="ad"> </div>
    <div class="nextinfo">
      <p>上一篇：<?php if($prev): ?><a href="<?php echo U('Index/article/'.$prev['id']);?>"><?php echo ($prev["title"]); ?></a><?php else: ?>已经是第一篇文章了<?php endif; ?></p>
      <p>下一篇：<?php if($next): ?><a href="<?php echo U('Index/article/'.$next['id']);?>"><?php echo ($next["title"]); ?></a><?php else: ?>已经是最后一篇文章了<?php endif; ?></p>
    </div>
    <div class="otherlink">
      <h2>相关文章</h2>
      <ul>
        <?php if(is_array($relation)): foreach($relation as $key=>$v): ?><li><a href="<?php echo U('Index/article/'.$v['id']);?>" title="<?php echo ($v["title"]); ?>"><?php echo ($v["title"]); ?></a></li><?php endforeach; endif; ?>
        
      </ul>
    </div>
  </div>
  <aside class="right">
    <div class="news" style="margin-top:10px;">
    <?php W('Right/hot');?>
    </div>  
    <!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare"><a class="bds_tsina"></a><a class="bds_qzone"></a><a class="bds_tqq"></a><a class="bds_renren"></a><span class="bds_more"></span><a class="shareCount"></a></div>
    <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6574585" ></script> 
    <script type="text/javascript" id="bdshell_js"></script> 
    <script type="text/javascript">

document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script> 
    <!-- Baidu Button END -->   
    <a onclick="javascript:window.open('/Public/Index/images/weixin.jpg','a', 'height=600,width=600,status=no,toolbar=no,menubar=no,location=no,scrollbars=no');" class="weixin"> </a></aside> 
</article>
<footer>
  <p><a href="http://www.miitbeian.gov.cn/" target="_blank"><?php echo (C("COPY")); ?></a> </p>
</footer>
<script src="/Public/Index/js/silder.js"></script>

<script type="text/javascript">
     if(typeof(Worker) === "undefined"){
     	$.get('/Public/Html5/html5.html', function(data){
			$('body').html(data);
		})
     }
</script>

</body>
</html>